package com.shangs.platform.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 文章
 * </p>
 *
 * @author shangs
 * @since 2017-10-26
 */
@TableName("cms_article")
public class CmsArticle extends Model<CmsArticle> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 栏目id
     */
	@TableField("catalog_id")
	private Long catalogId;
    /**
     * 文章名称
     */
	private String title;
    /**
     * 文章内容
     */
	private String content;
    /**
     * 浏览数
     */
	@TableField("count_view")
	private Integer countView;
    /**
     * 评论数
     */
	@TableField("count_comment")
	private Integer countComment;
    /**
     * 类型：1 正常 2 预览展示概述 3 程序调用处理
     */
	private Integer type;
    /**
     * 状态//radio/2,隐藏,1,显示
     */
	private String status;
    /**
     * 是否评论：2 否 1 是
     */
	@TableField("is_comment")
	private Integer isComment;
    /**
     * 是否推荐：2 否 1 是
     */
	@TableField("is_recommend")
	private Integer isRecommend;
    /**
     * 排序
     */
	private Integer sort;
    /**
     * 跳转地址
     */
	@TableField("jump_url")
	private String jumpUrl;
    /**
     * 图片路径
     */
	@TableField("image_url")
	private String imageUrl;
    /**
     * 网络图片路径
     */
	@TableField("image_net_url")
	private String imageNetUrl;
	@TableField("file_url")
	private String fileUrl;
	@TableField("file_name")
	private String fileName;
    /**
     * 审核状态
     */
	@TableField("approve_status")
	private Integer approveStatus;
    /**
     * 发布时间
     */
	@TableField("publish_time")
	private Date publishTime;
    /**
     * 发布者
     */
	@TableField("publish_user")
	private String publishUser;
    /**
     * 开始时间
     */
	@TableField("start_time")
	private Date startTime;
    /**
     * 结束时间
     */
	@TableField("end_time")
	private Date endTime;
    /**
     * 更新时间
     */
	@TableField("update_time")
	private Date updateTime;
	/**
	 * 修改人
	 */
	@TableField("update_id")
	private Integer updateId;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 创建者
     */
	@TableField("create_id")
	private Integer createId;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getCatalogId() {
		return catalogId;
	}

	public void setCatalogId(Long catalogId) {
		this.catalogId = catalogId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getCountView() {
		return countView;
	}

	public void setCountView(Integer countView) {
		this.countView = countView;
	}

	public Integer getCountComment() {
		return countComment;
	}

	public void setCountComment(Integer countComment) {
		this.countComment = countComment;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Integer getIsComment() {
		return isComment;
	}

	public void setIsComment(Integer isComment) {
		this.isComment = isComment;
	}

	public Integer getIsRecommend() {
		return isRecommend;
	}

	public void setIsRecommend(Integer isRecommend) {
		this.isRecommend = isRecommend;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getJumpUrl() {
		return jumpUrl;
	}

	public void setJumpUrl(String jumpUrl) {
		this.jumpUrl = jumpUrl;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public String getImageNetUrl() {
		return imageNetUrl;
	}

	public void setImageNetUrl(String imageNetUrl) {
		this.imageNetUrl = imageNetUrl;
	}

	public String getFileUrl() {
		return fileUrl;
	}

	public void setFileUrl(String fileUrl) {
		this.fileUrl = fileUrl;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public Integer getApproveStatus() {
		return approveStatus;
	}

	public void setApproveStatus(Integer approveStatus) {
		this.approveStatus = approveStatus;
	}

	public Date getPublishTime() {
		return publishTime;
	}

	public void setPublishTime(Date publishTime) {
		this.publishTime = publishTime;
	}

	public String getPublishUser() {
		return publishUser;
	}

	public void setPublishUser(String publishUser) {
		this.publishUser = publishUser;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getUpdateId() {
		return updateId;
	}

	public void setUpdateId(Integer updateId) {
		this.updateId = updateId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getCreateId() {
		return createId;
	}

	public void setCreateId(Integer createId) {
		this.createId = createId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "CmsArticle{" +
			"id=" + id +
			", catalogId=" + catalogId +
			", title=" + title +
			", content=" + content +
			", countView=" + countView +
			", countComment=" + countComment +
			", type=" + type +
			", status=" + status +
			", isComment=" + isComment +
			", isRecommend=" + isRecommend +
			", sort=" + sort +
			", jumpUrl=" + jumpUrl +
			", imageUrl=" + imageUrl +
			", imageNetUrl=" + imageNetUrl +
			", fileUrl=" + fileUrl +
			", fileName=" + fileName +
			", approveStatus=" + approveStatus +
			", publishTime=" + publishTime +
			", publishUser=" + publishUser +
			", startTime=" + startTime +
			", endTime=" + endTime +
			", updateTime=" + updateTime +
			", updateId=" + updateId +
			", createTime=" + createTime +
			", createId=" + createId +
			"}";
	}
}
